# This file is used to reload nginx configs
# WARNING: This file is only supposed to run directly on your hostmachine,
#   not in docker.
import os
from backend.configs import load_config
from backend.services.svc_nginx_proxy import NginxManager

_config_path = "./instance/configs.json"

load_config(_config_path)
NginxManager(os.path.abspath("./instance/nginx")).reload_nginx_configs()
